<template>
  <!--llbzs:需要swiper-item配置key是为什么-->
  <swiper :anim-duration="800" :interval="4000">
    <swiper-item v-for="(banner,index) in banners" :key="index">
      <a :href="banner.link">
        <img :src="banner.image">
      </a>
    </swiper-item>
  </swiper>
</template>

<script>
  import {Swiper,SwiperItem} from "components/common/swiper/index";

  export default {
    name: "HomeSwiper",
    components: {SwiperItem, Swiper},
    props: {
      banners: {
        type: Array,
        default: []
      }
    },
    comments: {
      Swiper,
      SwiperItem
    }
  }
</script>

<style scoped>

</style>
